﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Sicoagro.Controllers
{
    [HandleError]
    public class HomeController : Controller
    {
        public ActionResult Index()
        {
            ViewData["Message"] = "ASP.NET MVC";

            return View();
        }

        public ActionResult About()
        {
            return View();
        }

        //
        // GET: /Home/Acceso

        public ActionResult Acceso()
        {
            return View();
        }

        //
        // POST: /Home/Acceso

        [HttpPost]
        public ActionResult Acceso(FormCollection collection)
        {
            try
            {
                    return RedirectToAction("../Administrador");
            }
            catch
            {
                return View();
            }
        }
    }
}
